import request from "@/api/index";
// 1. 获取用户信息
export function userinfoGet(data) {
  return request({
    url: "/user/userinfo/get",
    method: "post",
    data: data
  });
}
// 关注房间列表
export function getFollowRoomList(data) {
  return request({
    url: "/user/relationship/getFollowRoomList",
    method: "get",
    params: data
  });
}

// 好友关系列表 type 1 关注列表 2 黑名单列表 3 粉丝列表 4 好友列表
export function getRelationshipList(data) {
  return request({
    url: "/user/relationship/getRelationshipList",
    method: "get",
    params: data
  });
}

// 关注或取关房间
export function addOrRemoveFollow(data) {
  return request({
    url: "/user/relationship/addOrRemoveFollow",
    method: "post",
    data: data
  });
}
// 关注或取关用户
export function addOrRemoveRelation(data) {
  return request({
    url: "/user/relationship/addOrRemoveRelation",
    method: "post",
    data: data
  });
}
// 获取道具类型列表新版本
export function newTypeList() {
  return request({
    url: "/assets/prop/newTypeList",
    method: "get"
  });
}
//
export function propList(data) {
  return request({
    url: "/assets/prop/propList",
    method: "get",
    params: data
  });
}

// 穿戴卸下道具
export function operateProp(data) {
  return request({
    url: "/assets/prop/operateProp",
    method: "post",
    data: data
  });
}
// 装扮续期
export function addCost(data) {
  return request({
    url: "/assets/prop/addCost",
    method: "post",
    data: data
  });
}
// 用户访客列表
export function guestList(data) {
  return request({
    url: "/user/userinfo/guestList",
    method: "get",
    params: data
  });
}
// 用户礼物墙
export function giftWall(data) {
  return request({
    url: "/user/giftWall/list",
    method: "get",
    params: data
  });
}
// 设置相册照片
export function setalbum(data) {
  return request({
    url: "/user/userinfo/setalbum",
    method: "post",
    data: data
  });
}

export function delalbum(data) {
  return request({
    url: "/user/userinfo/delalbum",
    method: "post",
    data: data
  });
}

// 修改用户信息
export function editUserInfo(data) {
  return request({
    url: "/user/userinfo/edit",
    method: "post",
    data: data
  });
}

// 标签兴趣列表
export function getLabel() {
  return request({
    url: "/user/userLabel/getAllLabel",
    method: "get"
  });
}

// 标签兴趣列表
export function getAuditedLabel() {
  return request({
    url: "/user/userLabel/getAuditedLabel",
    method: "get"
  });
}

// 读取爵位信息列表

export function getDukeConfig() {
  return request({
    url: "/user/user/level/config/getDukeConfig",
    method: "post"
  });
}
// 爵位特权列表

export function dukeList(data) {
  return request({
    url: "/user/userinfo/dukeList",
    method: "get",
    params: data
  });
}

export function getMyDuke() {
  return request({
    url: "/user/userinfo/getMyDuke",
    method: "get"
  });
}
// 个性化推荐
export function messageSwitch(data) {
  return request({
    url: "/user/others/messageSwitch",
    method: "post",
    data: data
  });
}
// 用户实名认证
export function realNameCertify(data) {
  return request({
    url: "/user/certify/realNameCertify",
    method: "post",
    data: data
  });
}
// 用户实名认证结果查询
export function queryCertify() {
  return request({
    url: "/user/certify/queryCertify",
    method: "post"
  });
}
// 用户加入公会接口
export function guildSign(data) {
  return request({
    url: "/user/guild/guildSign",
    method: "post",
    data: data
  });
}
// 公会详情接口
export function guildDetail(data) {
  return request({
    url: "/user/guild/guildDetail",
    method: "get",
    params: data
  });
}
// 公会申请状态接口
export function guildSignStatus(data) {
  return request({
    url: "/user/guild/guildSignStatus",
    method: "get",
    params: data
  });
}
// 公会排挡表
export function weekSchedule(data) {
  return request({
    url: "/user/capSchedule/weekSchedule",
    method: "get",
    params: data
  });
}
// 房间和公会
export function getRoomAndGuildName(data) {
  return request({
    url: "/user/guild/getRoomAndGuildName",
    method: "get",
    params: data
  });
}
// 队长相关信息
export function getCaptainDetail(data) {
  return request({
    url: "/user/guild/getCaptainDetail",
    method: "get",
    params: data
  });
}
// 查询用户是否绑定银行卡
export function useroption(data) {
  return request({
    url: "/user/others/useroption",
    method: "get",
    params: data
  });
}
// 获取体现信息
export function preWithdraw(data) {
  return request({
    url: "/assets/withdraw/preWithdraw",
    method: "get",
    params: data
  });
}
// 申请提现
export function applyWithdraw(data) {
  return request({
    url: "/assets/withdraw/applyWithdraw",
    method: "post",
    data: data
  });
}
// 发送公猫验签验证码
export function sendGongMallSmsCode(data) {
  return request({
    url: "/assets/withdraw/sendGongMallSmsCode",
    method: "get",
    params: data
  });
}
// 验证公猫验证码接口
export function gongMallSignContract(data) {
  return request({
    url: "/assets/withdraw/gongMallSignContract",
    method: "post",
    data: data
  });
}
// 获取小猪电签地址
export function sendSmartPigSign(data) {
  return request({
    url: "/assets/withdraw/sendSmartPigSign",
    method: "get",
    params: data
  });
}
// 绑定银行卡信息
export function queryBindInfo() {
  return request({
    url: "/user/bank/queryBindInfo",
    method: "get"
  });
}
// 用户绑定银行卡
export function addBindInfo(data) {
  return request({
    url: "/user/bank/addBindInfo",
    method: "post",
    data: data
  });
}
// 更换绑定银行卡
export function changeBindInfo(data) {
  return request({
    url: "/user/bank/changeBindInfo",
    method: "post",
    data: data
  });
}
// 发消息检测
export function checkMessage(data, HeadersData) {
  return request({
    url: "/misc/message/checkMessage",
    method: "post",
    data: data,
    HeadersData: HeadersData
  });
}

export function getInFoldMessageUserList() {
  return request({
    url: "/misc/message/getInFoldMessageUserList",
    method: "get"
  });
}
